// 账号管理接口
import { postRequest1, getRequest1 } from "@/utils/request1";

// 查询余额
export const getAssetBalanceApi = (param) => {
  return getRequest1("/api/v2/cms/assets/balance", param);
};
// 取消告警
export const clearOrderWarningApi = (param) => {
  return getRequest1("/api/v2/cms/warning/handle", param);
};
// 账号充值--充值
// 充值列表
export const rechargeListApi = (param, type) => {
  return getRequest1("/api/v2/cms/recharge/list", param, type);
};
//当个订单信息
export const rechargeOrderInfoApi = (param) => {
  return getRequest1("/api/v2/cms/recharge/order_info", param);
};
//提交
export const rechargeSubmitApi = (param) => {
  return postRequest1("/api/v2/cms/recharge/submit", param);
};
//审核
export const rechargeAuditApi = (param) => {
  return postRequest1("/api/v2/cms/recharge/audit", param);
};
// 根据币种获取银行卡
export const rechargeGetBankCardsApi = (param) => {
  return postRequest1("/api/v2/cms/recharge/get_bank_cards", param);
};
//获取币种列表
export const GetCurrencyApi = (param) => {
  return getRequest1("/api/v2/cms/currency", param);
};

//充值退款
//  /api/v2/cms/recharge/cancel
export const rechargeCancelApi = (param) => {
  return postRequest1("/api/v2/cms/recharge/cancel", param);
};
//充值的付款卡列表
export const rechargePaymentCardsApi = (param) => {
  return postRequest1("/api/v2/cms/recharge/payment_cards", param);
};

//退款列表
export const refundListApi = (param) => {
  return getRequest1("/api/v2/cms/channel/refund_list", param);
};
//单个退款订单信息
export const refundInfoApi = (param) => {
  return getRequest1("/api/v2/cms/channel/refund_order_info", param);
};

//收单列表
export const ordersListApi = (param, type) => {
  return getRequest1("/api/v2/cms/channel/orders", param, type);
};

//收单列表详情
export const ordersInfoApi = (param) => {
  return getRequest1("/api/v2/cms/channel/order_info", param);
};
//申请退款
// /api/
export const accountRefundApi = (param) => {
  return postRequest1("/api/v2/account/refund", param);
};

// payListApi,payGetUserListApi,payGetUserBanktApi,paySubmitApi,
// 账号付款--付款
//付款
export const payListApi = (param, type) => {
  return getRequest1("/api/v2/cms/pay/list", param, type);
};
// 单个付款订单信息
export const payInfoApi = (param) => {
  return getRequest1("/api/v2/cms/pay/order_info", param);
};

//  /api/v2/cms/pay/cancel
// 付款--取消付款
export const payCancelApi = (param) => {
  return postRequest1("/api/v2/cms/pay/cancel", param);
};
//付款审核
export const payAuditApi = (param) => {
  return postRequest1("/api/v2/cms/pay/audit", param);
};
// 获取代付kyc用户
export const payGetUserListApi = (param) => {
  return postRequest1("/api/v2/cms/pay/get_user", param);
};
//获取币种列表
export const PayCurrencyApi = (param) => {
  return getRequest1("/api/v2/cms/currency", param);
};
//获取代付用户绑卡
export const payGetUserBanktApi = (param) => {
  return getRequest1("/api/v2/cms/pay/get_user_bank", param);
};
//提交付款
export const paySubmitApi = (param) => {
  return postRequest1("/api/v2/cms/pay/submit", param);
};

// 编辑银行卡
export const payCardsSubmitApi = (param) => {
  return postRequest1("/api/v2/account/cards", param);
};
//提现审核
export const withdrawAuditApi = (param) => {
  return postRequest1("/api/v2/account/withdraw/audit", param);
};
//取消提现
export const withdrawCancelApi = (param) => {
  return postRequest1("/api/v2/account/withdraw/cancel", param);
};
//提现记录
export const withdrawListApi = (param) => {
  return getRequest1("/api/v2/account/withdraw/records", param);
};
//单个提现详情
export const withdrawDetailApi = (param) => {
  return getRequest1("/api/v2/account/withdraw/detail", param);
};
// /api/pay/withdraw/records
//银行卡列表
export const cardsListApi = (param) => {
  return getRequest1("/api/v2/account/cards/list", param);
};

//提现申请
export const withdrawSubmitApi = (param) => {
  return postRequest1("/api/v2/account/withdraw", param);
};

// kycListApi,kycDeleteListApi,kycInfoListApi
// 商户下kyc用户--客户管理
//客户管理
export const kycListApi = (param) => {
  return getRequest1("/api/v2/cms/kyc/list", param);
};

//删除kyc用户
export const kycDeleteListApi = (param) => {
  return getRequest1("/api/v2/cms/kyc/delete", param);
};
//客户kyc名称
export const customerKycNameApi = (param) => {
  return getRequest1("/api/v2/cms/kyc/name", param);
};
//单个用户详情
export const kycInfoListApi = (param) => {
  return getRequest1("/api/v2/cms/kyc/info", param);
};
//kyc认证信息暂存
export const kycSaveApi = (param) => {
  return postRequest1("/api/v2/cms/kyc/save", param);
};
//kyc信息提交认证
export const kycSubmitApi = (param) => {
  return postRequest1("/api/v2/cms/kyc/submit", param);
};
//删除 kyc用户
export const kycDeleteApi = (param) => {
  return getRequest1("/api/v2/cms/kyc/delete", param);
};

// kyc用户详情
export const kycInfoApi = (param) => {
  return getRequest1("/api/v2/cms/kyc/info", param);
};
// kyc用户详情
export const kycAuditApi = (param) => {
  return getRequest1("/api/v2/cms/kyc/audit", param);
};
// 商户KYC名称
export const merchantKycApi = (param) => {
  return getRequest1("/api/v2/cms/merchant/kyc", param);
};

//绑卡

export const bankAddApi = (param) => {
  return postRequest1("/api/v2/cms/kyc/bank_add", param);
};

//绑卡列表
export const bankListApi = (param) => {
  return getRequest1("/api/v2/cms/kyc/bank_list", param);
};

//绑卡删除
export const bankDeleteApi = (param) => {
  return getRequest1("/api/v2/cms/kyc/bank_delete", param);
};

//单个绑卡信息
//银行卡更新

export const bankUpdateApi = (param) => {
  return postRequest1("/api/v2/cms/kyc/bank_update", param);
};
